package com.touni.designpattern.prototypepattern;

/**
 * @ClassName : Shape
 * @Description :
 * @Author : lwq
 * @Date: 2020-10-20 19:26
 */
public abstract class Shape implements Cloneable {
    private String type;

    public abstract void draw();

    @Override
    protected Shape clone() {
        Shape clone = null;
        try {
            clone = (Shape) super.clone();
        }catch (Exception e){
            e.printStackTrace();
        }
        return clone;
    }
}
